<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'pelanggan-form',
	'enableAjaxValidation'=>false,
)); ?>

	<p class="note">Fields with <span class="required">*</span> are required.</p>

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php echo $form->labelEx($model,'Username'); ?>
		<?php echo $form->textField($model,'Username',array('size'=>10,'maxlength'=>10)); ?>
		<?php echo $form->error($model,'Username'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'Nama'); ?>
		<?php echo $form->textField($model,'Nama',array('size'=>20,'maxlength'=>20)); ?>
		<?php echo $form->error($model,'Nama'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'Alamat'); ?>
		<?php echo $form->textField($model,'Alamat',array('size'=>50,'maxlength'=>50)); ?>
		<?php echo $form->error($model,'Alamat'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'Tanggal_Lahir'); ?>
		<p><?php echo $form->textField($model,'Tanggal_Lahir'); ?>    Format : DD-MM-YYYY</p>
		<?php echo $form->error($model,'Tanggal_Lahir'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'Email'); ?>
		<?php echo $form->textField($model,'Email',array('size'=>20,'maxlength'=>20)); ?>
		<?php echo $form->error($model,'Email'); ?>
	</div>

        <div class="row">
		<?php echo $form->labelEx($model,'Telepon'); ?>
		<?php echo $form->textField($model,'Telepon',array('size'=>15,'maxlength'=>15)); ?>
		<?php echo $form->error($model,'Telepon'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'Password'); ?>
		<?php echo $form->passwordField($model,'Password',array('size'=>10,'maxlength'=>10)); ?>
		<?php echo $form->error($model,'Password'); ?>
	</div>

        <div class="row">
                <?php echo $form->labelEx($model, 'retype_password');?>
                <?php echo $form->passwordField($model, 'retype_password', array('size'=>10,'maxlength'=>10)); ?>
                <?php echo $form->error($model, 'retype_password'); ?>
        </div>

	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->